package cn.dada.dadarecipes.community.comment.pojo.entity;

import io.swagger.annotations.ApiModelProperty;
import lombok.AccessLevel;
import lombok.Data;
import lombok.experimental.FieldDefaults;
import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalDateTime;

@Data
@FieldDefaults(level = AccessLevel.PRIVATE)
public class Comment {
    @ApiModelProperty(value = "评论表id")
    Long id;
    @ApiModelProperty(value = "文章id")
    Long articleId;
    @ApiModelProperty(value = "用户id")
    Long userId;
    @ApiModelProperty(value = "评论内容")
    String commentText;
    @ApiModelProperty(value = "评论图片")
    String imgUrl;
    @ApiModelProperty(value = "创建时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH-mm-ss")
    LocalDateTime createTime;
    @ApiModelProperty(value = "修改时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH-mm-ss")
    LocalDateTime updateTime;
}
